package com.sdry.product.sorting.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdry.product.sorting.entity.SortReceivingDetail;
import com.sdry.product.sorting.mapper.SortReceivingDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: info_sdry
 * @description: 入库下表
 * @author: cb
 * @create: 2020-02-28 13:50
 **/
@Service
@Transactional(rollbackFor = Exception.class)
public class SortReceivingDetailServiceImpl extends ServiceImpl<SortReceivingDetailMapper, SortReceivingDetail> implements SortReceivingDetailService {

    @Resource
    private SortReceivingDetailMapper sortReceivingDetailMapper;

    @Override
    public List<SortReceivingDetail> queryWarehousingDetailPage(SortReceivingDetail sortReceivingDetail) {
        return sortReceivingDetailMapper.queryWarehousingDetailPage(sortReceivingDetail);
    }

    @Override
    public Long queryWarehousingDetailTotal(SortReceivingDetail sortReceivingDetail) {
        return sortReceivingDetailMapper.queryWarehousingDetailTotal(sortReceivingDetail);
    }
}
